package com.czd.support.service;

import org.springframework.stereotype.Service;

import com.czd.base.model.Paginate;
import com.czd.base.service.BaseService;
import com.czd.support.common.Configuration;
import com.czd.support.model.ZcQuestion;


@Service
public class ZcQuestionService   extends  BaseService<ZcQuestion>{
   
	  
	
	   public Paginate queryForPaginate(ZcQuestion zcQuestion){
		   zcQuestion.setPageSize(Configuration.getInstance().getDefault_page_size());
	        return this.queryForPaginate(sqlId("queryForPaginate"),sqlId("questionCount"),zcQuestion);
	    }
	   
	   public ZcQuestion findById(int  id) {
			 return  this.selectOneById("findById", id);
		 }
	   
	   public  void   updateFlag(int id){
		   this.update("updateFlag", id);
	   }
	   
	   /**
	    * 删除问题
	    */
	   public void  deleteById(int  id){
		   this.delete("deleteById", id);
	   }
	   
	 
	   
	  
}
